const intersectionBy = require('lodash/intersectionBy')
const intersectionWith = require('lodash/intersectionWith')

const parentData = require('./parentData.json')
const node1Parents = parentData.shift()
const node2Parents = parentData.shift()

const intersect = intersectionBy(node1Parents, node2Parents, 'value.value')
console.log(`intersect: `, intersect)
